package com.zsk.dao;

import com.zsk.entity.AttrInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IAttrInfoIDao {
    int deleteByPrimaryKey(Long id);

    int insert(AttrInfo record);

    int insertSelective(AttrInfo record);

    AttrInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(AttrInfo record);

    int updateByPrimaryKey(AttrInfo record);

    int batchInsert(List<AttrInfo> list);

    List<AttrInfo> findByName(@Param("name") String name);

    List<AttrInfo> findAll(@Param("maxId") long maxId);

    int deleteByName(@Param("name") String name);

    boolean existByName(@Param("name") String name);

    List<AttrInfo> findByColNameAndValue(@Param("colName") String colName, @Param("colValue") String colValue);
}